/**************************************************************************
File:        texttodll.h
Description: multiline edit widget which turns the text into a dll
 
Copyright:   (C) 2001 by ZJ Laczik
Email:       Zsolt.Laczik@eng.ox.ac.uk
****************************************************************************
Change log:
   begin      09/05/1999
   15/2/2012	QT4 update
***************************************************************************/

#ifndef __TEXTTODLL_H__
#define __TEXTTODLL_H__

#include <QPlainTextEdit>

class TTDLL_MultiLineEdit : public QPlainTextEdit
{
    Q_OBJECT
private:
    int mDirty;
    QString fn, libname;
public:
    TTDLL_MultiLineEdit(QWidget *parent=0);
    ~TTDLL_MultiLineEdit( );

public slots:
      void clearDirtyFlag();
      void setDirtyFlag();
      void MakeLib();
      void slotCreateDefaultBatchfile();

signals:
      void LibHasChanged( const char *);
      void StatusMsg( const QString &, bool );

protected:

private:

private slots:
      void resetBackGround();
      void setRedBackGround();
      void setGreenBackGround();
      void focusOutEvent ( QFocusEvent * );
      void keyPressEvent( QKeyEvent * );
};

#endif
